Using the Memory Manager
Using the Memory Manager
In system 7.0, you can continue to use any memory management routines
documented previously, with two notable exceptions. The SetupA5 procedure
and the Re storeA5 procedure documented in the
Operating System Utilities do not work properly when used with some
optimizing compilers. You can also use SetCurrentA5 and SetA5, that
perform the same operations without the problems of the earlier procedures.
See the section,Setting and Restoring the A5 Register for examples of
using these two functions.
Several Memory Manager routines have changed to support operations on
temporary memory as well as memory allocated from your application's heap.
For example, you can now dispose of temporary memory by calling
DisposHandle. Changes to the Memory Manager connected to temporary
memory are discussed in Using Temporary Memory. The behavior of
Memory Manager routines on blocks in your application's heap remains
un changed.